const mergeURL = (url, params) => {
  if (!params) return url
  let paramsData = '?'
  Object.keys(params).forEach(function(key) {
    paramsData += `${key}=${params[key]}&`
  })
  return url + paramsData.substring(0, paramsData.length - 1)
}


export default {
  mergeURL,
}
